/**
 * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug
 * Copyright (c) <spug.dev@gmail.com>
 * Released under the AGPL-3.0 License.
 */
export default [{
  key: 'home',
  label: '工作台',
  pages: [{
    key: 'home',
    label: '工作台',
    perms: [
      {key: 'view', label: '查看工作台'}
    ]
  }]
}, {
  key: 'order',
  label: '订单管理',
  pages: [{
    key: 'order',
    label: '服务订单',
    perms: [
      {key: 'view', label: '查看订单'},
      {key: 'add', label: '新建订单'},
      {key: 'edit', label: '编辑订单'},
      {key: 'del', label: '删除订单'},
      {key: 'detail', label: '订单详情'},
      {key: 'allocation', label: '分配订单'},
      {key: 'ayi', label: '分配阿姨'},
    ]
  }, {
    key: 'goods',
    label: '商品订单',
    perms: [
      {key: 'view', label: '查看订单'},
      {key: 'add', label: '新建订单'},
      {key: 'edit', label: '编辑订单'},
      {key: 'del', label: '删除订单'},
      {key: 'detail', label: '订单详情'},
    ]
  }]
}, {
  key: 'service',
  label: '服务管理',
  pages: [{
    key: 'city',
    label: '服务城市',
    perms: [
      {key: 'view', label: '查看城市'},
      {key: 'add', label: '新建城市'},
      {key: 'edit', label: '编辑城市'},
      {key: 'del', label: '删除城市'},
    ]
  }, {
    key: 'sku',
    label: '家政服务',
    perms: [
      {key: 'view', label: '查看服务'},
      {key: 'add', label: '新建服务'},
      {key: 'edit', label: '编辑服务'},
      {key: 'del', label: '删除服务'},
      {key: 'qrcode', label: '服务二维码'},
    ]
  }]
}, {
  key: 'goods',
  label: '商品管理',
  pages: [{
    key: 'goods',
    label: '商品列表',
    perms: [
      {key: 'view', label: '查看商品'},
      {key: 'add', label: '新建商品'},
      {key: 'edit', label: '编辑商品'},
      {key: 'del', label: '删除商品'},
      {key: 'is_putaway', label: '上下架'},
    ]
  }]
}, {
  key: 'coupon',
  label: '优惠券管理',
  pages: [{
    key: 'coupon',
    label: '优惠券管理',
    perms: [
      {key: 'view', label: '查看优惠券'},
      {key: 'add', label: '新建优惠券'},
      {key: 'edit', label: '编辑优惠券'},
      {key: 'del', label: '删除优惠券'},
      {key: 'export', label: '导出优惠券'},
    ]
  }]
}, {
  key: 'banner',
  label: 'Banner管理',
  pages: [{
    key: 'banner',
    label: 'Banner管理',
    perms: [
      {key: 'view', label: '查看Banner'},
      {key: 'add', label: '新建Banner'},
      {key: 'edit', label: '编辑Banner'},
      {key: 'del', label: '删除Banner'},
      {key: 'active', label: '禁用启用Banner'}
    ]
  }]
}, {
  key: 'shop',
  label: '分店管理',
  pages: [{
    key: 'shop',
    label: '分店信息',
    perms: [
      {key: 'view', label: '查看分店'},
      {key: 'add', label: '新建分店'},
      {key: 'edit', label: '编辑分店'},
      {key: 'del', label: '删除分店'},
      {key: 'active', label: '禁用启用分店'}
    ]
  },
  {
    key: 'order',
    label: '订单信息',
    perms: [
      {key: 'view', label: '查看订单'},
      {key: 'ayi', label: '分配阿姨'},
      {key: 'handle', label: '接单'},
    ]
  }]
}, {
  key: 'ayi',
  label: '阿姨管理',
  pages: [{
    key: 'ayi',
    label: '阿姨列表',
    perms: [
      {key: 'view', label: '查看阿姨'},
      {key: 'add', label: '新建阿姨'},
      {key: 'edit', label: '编辑阿姨'},
      {key: 'del', label: '删除阿姨'},
      {key: 'detail', label: '阿姨详情'},
      {key: 'time', label: '阿姨时间'},
      {key: 'qrcode', label: '阿姨二维码'},
      {key: 'wechat', label: '绑定微信'},
    ]
  }]
},{
  key: 'wechat',
  label: '微信管理',
  pages: [{
    key: 'wechat',
    label: '注册用户',
    perms: [
      {key: 'view', label: '查看用户'},
      {key: 'edit', label: '编辑用户'},
      {key: 'del', label: '删除用户'},
      {key: 'active', label: '禁用启用用户'}
    ]
  }]
},

]
